<script setup lang="ts">
import { RouterLink, useRouter } from 'vue-router'
const router = useRouter()
const routes = router.getRoutes()
</script>

<template>
  <header>
    <div class="router-links">
      <router-link v-for="{ path, name } of routes" :to="path" :key="path">{{ name }}</router-link>
    </div>
  </header>
</template>
<style scoped>
.router-links a {
  display: block;
}
</style>
